<?php
/** 
 * Created by RisingSun. 
 * User: MarkSpace 
 * Date: 20210822
 * Time: 11:05 
 */
namespace  app\home\controller;

use  Mscore\Core\Controller;
use  app\home\model\Basics;

class ErrorController extends Controller{
    
    public $config;

    public function __construct()  
    {    
        $this->config = (new Basics())->getconfig('id=1');
        if(($this->config['site_status'])){
        Header("Location:/home/web/index/");
        } 
    } 

    /**
     * 关闭页面
     * @param array $error 
    */
    public function close(){

        $this->display("close.html");
    }


}